Skip to content

feat: sync generated types with schemas v0.21.1 - #105

Merged
edenreich merged 4 commits into
mainfrom
schemas-sync
Aug 4, 2026
Merged

feat: sync generated types with schemas v0.21.1#105
edenreich merged 4 commits into
mainfrom
schemas-sync

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Deterministic type sync from inference-gateway/schemas at v0.21.1.

Regenerated with task oas-sync SCHEMAS_REF=refs/tags/v0.21.1 by the org schemas-sync reusable workflow. Re-runs update this PR in place; it closes automatically if the repo is back in sync.

If the new types need follow-up implementation (client surface, examples, docs), comment @claude or @infer on this PR with instructions.

@inference-gateway-maintainer inference-gateway-maintainer Bot changed the title feat: sync generated types with schemas v0.20.0 feat: sync generated types with schemas v0.21.0 Aug 4, 2026
@inference-gateway-maintainer inference-gateway-maintainer Bot changed the title feat: sync generated types with schemas v0.21.0 feat: sync generated types with schemas v0.21.1 Aug 4, 2026
@edenreich

Copy link
Copy Markdown
Contributor

@infer There are new types, anything we need to implement? if so can you implement the types? use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Assess: does the client need any code changes for the new modalities field?
  • Update docstring in list_models to mention modalities
  • Run checks and commit

Pull Request

#105

✅ Infer Result: Success

Summary

Ponytail assessment: The modalities field was already added to the Model Pydantic model by the PR's generated code. The client's list_models method already accepts include: Optional[List[str]] and passes it through as a query parameter — so client.list_models(include=["modalities"]) already works with zero code changes.

Only change needed: Updated the list_models docstring to list "modalities" alongside "context_window" and "pricing" as a supported include value.

Committed as docs(client): mention modalities in list_models include docstring and pushed.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 1m 16s

Tokens: 968,624 in · 3,054 out · 971,678 total (16 requests)

Tool calls: 19 total · 89% success rate

Traces
Session: 1785885611-f3e69cd6

session (standard, success)                                         1m9s
├── chat ollama_cloud/deepseek-v4-flash                             2.2s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.2s
│       ╰── HTTP POST [inference-gateway]                           2.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.2s
│               ╰── HTTP POST [inference-gateway]                   2.2s
├── execute_tool Bash call_xilxspxh                                  7ms
├── execute_tool Read call_9l469hfj                                890µs
├── execute_tool Bash call_gapnpd7w                                 10ms
├── chat ollama_cloud/deepseek-v4-flash                             2.7s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.7s
│       ╰── HTTP POST [inference-gateway]                           2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.7s
│               ╰── HTTP POST [inference-gateway]                   2.7s
├── execute_tool Read call_ha0vx7oi                                889µs
├── execute_tool Read call_3q642lm5                                599µs
├── execute_tool Read call_87629i7g                                168µs
├── chat ollama_cloud/deepseek-v4-flash                             5.7s
│   ╰── POST /v1/chat/completions [inference-gateway]               5.6s
│       ╰── HTTP POST [inference-gateway]                           5.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     5.6s
│               ╰── HTTP POST [inference-gateway]                   5.6s
├── execute_tool TodoWrite call_sj2uqz3o                            64µs
├── chat ollama_cloud/deepseek-v4-flash                             3.2s
│   ╰── POST /v1/chat/completions [inference-gateway]               3.2s
│       ╰── HTTP POST [inference-gateway]                           3.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     3.2s
│               ╰── HTTP POST [inference-gateway]                   3.2s
├── execute_tool TodoWrite call_rr6yhl6x                            48µs
├── chat ollama_cloud/deepseek-v4-flash                             1.9s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.9s
│       ╰── HTTP POST [inference-gateway]                           1.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.9s
│               ╰── HTTP POST [inference-gateway]                   1.9s
├── execute_tool Edit call_wbz3k5w9                                579µs
├── chat ollama_cloud/deepseek-v4-flash                             3.1s
│   ╰── POST /v1/chat/completions [inference-gateway]               3.1s
│       ╰── HTTP POST [inference-gateway]                           3.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     3.1s
│               ╰── HTTP POST [inference-gateway]                   3.1s
├── execute_tool TodoWrite call_mv6der26                            66µs
├── chat ollama_cloud/deepseek-v4-flash                             2.4s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.4s
│       ╰── HTTP POST [inference-gateway]                           2.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.4s
│               ╰── HTTP POST [inference-gateway]                   2.4s
├── execute_tool Bash call_rjdg4o9r                                 71ms [error: tool_error]
├── chat ollama_cloud/deepseek-v4-flash                             1.6s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.6s
│       ╰── HTTP POST [inference-gateway]                           1.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.6s
│               ╰── HTTP POST [inference-gateway]                   1.6s
├── execute_tool Bash call_9mzoy6vo                                17.3s
├── chat ollama_cloud/deepseek-v4-flash                             2.7s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.7s
│       ╰── HTTP POST [inference-gateway]                           2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.7s
│               ╰── HTTP POST [inference-gateway]                   2.7s
├── execute_tool Bash call_gtwzbgm0                                 5.8s [error: tool_error]
├── chat ollama_cloud/deepseek-v4-flash                             4.8s
│   ╰── POST /v1/chat/completions [inference-gateway]               4.8s
│       ╰── HTTP POST [inference-gateway]                           4.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     4.8s
│               ╰── HTTP POST [inference-gateway]                   4.8s
├── chat ollama_cloud/deepseek-v4-flash                             2.4s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.4s
│       ╰── HTTP POST [inference-gateway]                           2.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.4s
│               ╰── HTTP POST [inference-gateway]                   2.4s
├── execute_tool Bash call_oc1r5pzm                                 1.6s
├── chat ollama_cloud/deepseek-v4-flash                             2.5s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.5s
│       ╰── HTTP POST [inference-gateway]                           2.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.5s
│               ╰── HTTP POST [inference-gateway]                   2.5s
├── execute_tool Bash call_j8ysc0ic                                  5ms
├── chat ollama_cloud/deepseek-v4-flash                             1.6s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.6s
│       ╰── HTTP POST [inference-gateway]                           1.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.6s
│               ╰── HTTP POST [inference-gateway]                   1.6s
├── execute_tool Bash call_l4moww4v                                467ms
├── chat ollama_cloud/deepseek-v4-flash                             1.5s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.5s
│       ╰── HTTP POST [inference-gateway]                           1.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.5s
│               ╰── HTTP POST [inference-gateway]                   1.5s
├── execute_tool Bash call_zb3agvc0                                945ms
├── chat ollama_cloud/deepseek-v4-flash                             1.7s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.7s
│       ╰── HTTP POST [inference-gateway]                           1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.7s
│               ╰── HTTP POST [inference-gateway]                   1.7s
├── execute_tool TodoWrite call_gg0tiyh6                            72µs
╰── chat ollama_cloud/deepseek-v4-flash                             2.2s
    ╰── POST /v1/chat/completions [inference-gateway]               2.2s
        ╰── HTTP POST [inference-gateway]                           2.2s
            ╰── POST /proxy/:provider/*path [inference-gateway]     2.2s
                ╰── HTTP POST [inference-gateway]                   2.2s
Stats
Tool Calls

╭───────────┬───────┬───────┬────────╮
│ Tool      │ Calls │ Fail% │ Avg    │
├───────────┼───────┼───────┼────────┤
│ Bash      │ 9     │ 22%   │ 2904ms │
│ Read      │ 4     │ 0%    │ 0ms    │
│ TodoWrite │ 4     │ 0%    │ 0ms    │
│ Edit      │ 1     │ 0%    │ 0ms    │
╰───────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────────┬────────┬────────┬────────────┬────────┬──────╮
│ Model                          │ Prompt │ Cached │ Completion │ Total  │ Cost │
├────────────────────────────────┼────────┼────────┼────────────┼────────┼──────┤
│ ollama_cloud/deepseek-v4-flash │ 968624 │ 0      │ 3054       │ 971678 │ -    │
╰────────────────────────────────┴────────┴────────┴────────────┴────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ standard │ 1        │
╰───────────┴──────────┴──────────╯
⚠️ 2 log(s)
  • Bash call_rjdg4o9r:
    exit status 201: task: [lint] echo "Running linting checks..."
    Running linting checks...
    task: [lint] black --check inference_gateway/ tests/ examples/
    "black": executable file not found in $PATH
    ::error title=Task 'lint' failed::exit status 127
    task: Failed to run task "lint": exit status 127
    
  • Bash call_gtwzbgm0:
    exit status 201: task: [lint] echo "Running linting checks..."
    Running linting checks...
    task: [lint] black --check inference_gateway/ tests/ examples/
    All done! ✨ 🍰 ✨
    19 files would be left unchanged.
    task: [lint] isort --check-only inference_gateway/ tests/ examples/
    task: [lint] mypy inference_gateway/ examples/
    inference_gateway/client.py:513: error: Incompatible types in assignment (expression has type "int", target has type "bool | str | list[ResponseInputItem] | list[dict[str, Any]]")  [assignment]
    inference_gateway/client.py:580: error: Incompatible types in assignment (expression has type "int", target has type "bool | str | list[ResponseInputItem] | list[dict[str, Any]]")  [assignment]
    Found 2 errors in 1 file (checked 16 source files)
    ::error title=Task 'lint' failed::exit status 1
    task: Failed to run task "lint": exit status 1
    

Triggered by edenreich · Infer Action · OSS

@edenreich

Copy link
Copy Markdown
Contributor

@infer Can you add the include query string to the list example? use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Add include parameter example to examples/list/main.py
  • Update examples/list/README.md to mention include parameter
  • Run lint/format checks and commit

Pull Request

#105

✅ Infer Result: Success

Done. Here's what I changed:

examples/list/main.py - Added a third example showing the include parameter:

# Include additional metadata (context_window, pricing, modalities)
detailed_models = client.list_models(include=["context_window", "pricing"])
print("Models with details:", detailed_models)

examples/list/README.md - Added a bullet point documenting the include capability.

The list_models() method already supported the include parameter (added in the schema sync PR), so this just shows it in action - the laziest correct change.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 47s

Tokens: 573,906 in · 2,496 out · 576,402 total (17 requests)

Tool calls: 18 total · 94% success rate

Traces
Session: 1785886440-a3b0538f

session (standard, success)                                        39.6s
├── chat ollama_cloud/deepseek-v4-flash                             3.0s
│   ╰── POST /v1/chat/completions [inference-gateway]               3.0s
│       ╰── HTTP POST [inference-gateway]                           3.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     3.0s
│               ╰── HTTP POST [inference-gateway]                   3.0s
├── execute_tool Bash call_vyrjrso6                                  5ms
├── execute_tool Read call_jumidmr8                                201µs
├── execute_tool Read call_jnjtod89                                901µs
├── chat ollama_cloud/deepseek-v4-flash                             2.3s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.3s
│       ╰── HTTP POST [inference-gateway]                           2.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.2s
│               ╰── HTTP POST [inference-gateway]                   2.2s
├── execute_tool Read call_uoshv5oq                                146µs
├── chat ollama_cloud/deepseek-v4-flash                             2.1s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.1s
│       ╰── HTTP POST [inference-gateway]                           2.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.0s
│               ╰── HTTP POST [inference-gateway]                   2.0s
├── execute_tool TodoWrite call_7pcpvfl6                            73µs
├── chat ollama_cloud/deepseek-v4-flash                             3.0s
│   ╰── POST /v1/chat/completions [inference-gateway]               3.0s
│       ╰── HTTP POST [inference-gateway]                           3.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     3.0s
│               ╰── HTTP POST [inference-gateway]                   3.0s
├── execute_tool Edit call_soa00oze                                260µs
├── chat ollama_cloud/deepseek-v4-flash                             3.3s
│   ╰── POST /v1/chat/completions [inference-gateway]               3.3s
│       ╰── HTTP POST [inference-gateway]                           3.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     3.3s
│               ╰── HTTP POST [inference-gateway]                   3.3s
├── execute_tool TodoWrite call_pz3xnxd1                            72µs
├── chat ollama_cloud/deepseek-v4-flash                             2.1s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.1s
│       ╰── HTTP POST [inference-gateway]                           2.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.1s
│               ╰── HTTP POST [inference-gateway]                   2.1s
├── execute_tool Edit call_zmno6dxj                                259µs
├── chat ollama_cloud/deepseek-v4-flash                             1.7s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.7s
│       ╰── HTTP POST [inference-gateway]                           1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.7s
│               ╰── HTTP POST [inference-gateway]                   1.7s
├── execute_tool TodoWrite call_p7emi22n                            52µs
├── chat ollama_cloud/deepseek-v4-flash                             1.4s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.4s
│       ╰── HTTP POST [inference-gateway]                           1.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.4s
│               ╰── HTTP POST [inference-gateway]                   1.4s
├── execute_tool Bash call_sqrtaj2y                                 73ms [error: tool_error]
├── chat ollama_cloud/deepseek-v4-flash                             1.9s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.9s
│       ╰── HTTP POST [inference-gateway]                           1.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.9s
│               ╰── HTTP POST [inference-gateway]                   1.9s
├── chat ollama_cloud/deepseek-v4-flash                             1.3s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.3s
│       ╰── HTTP POST [inference-gateway]                           1.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.3s
│               ╰── HTTP POST [inference-gateway]                   1.3s
├── chat ollama_cloud/deepseek-v4-flash                             2.0s
│   ╰── POST /v1/chat/completions [inference-gateway]               2.0s
│       ╰── HTTP POST [inference-gateway]                           2.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     2.0s
│               ╰── HTTP POST [inference-gateway]                   2.0s
├── execute_tool Bash call_v2aoq0b4                                 4.2s
├── chat ollama_cloud/deepseek-v4-flash                             1.2s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.1s
│       ╰── HTTP POST [inference-gateway]                           1.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.1s
│               ╰── HTTP POST [inference-gateway]                   1.1s
├── execute_tool Bash call_6h87v84d                                 1.6s
├── chat ollama_cloud/deepseek-v4-flash                             1.2s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.2s
│       ╰── HTTP POST [inference-gateway]                           1.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.2s
│               ╰── HTTP POST [inference-gateway]                   1.2s
├── execute_tool Bash call_8hqqw84u                                  6ms
├── chat ollama_cloud/deepseek-v4-flash                             1.4s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.4s
│       ╰── HTTP POST [inference-gateway]                           1.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.4s
│               ╰── HTTP POST [inference-gateway]                   1.4s
├── execute_tool Bash call_6pnbjd4v                                448ms
├── chat ollama_cloud/deepseek-v4-flash                             1.3s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.3s
│       ╰── HTTP POST [inference-gateway]                           1.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.3s
│               ╰── HTTP POST [inference-gateway]                   1.3s
├── execute_tool Bash call_ya8yb0ct                                927ms
├── chat ollama_cloud/deepseek-v4-flash                             1.5s
│   ╰── POST /v1/chat/completions [inference-gateway]               1.5s
│       ╰── HTTP POST [inference-gateway]                           1.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway]     1.4s
│               ╰── HTTP POST [inference-gateway]                   1.4s
├── execute_tool TodoWrite call_xihqeq1m                            65µs
╰── chat ollama_cloud/deepseek-v4-flash                             1.5s
    ╰── POST /v1/chat/completions [inference-gateway]               1.5s
        ╰── HTTP POST [inference-gateway]                           1.5s
            ╰── POST /proxy/:provider/*path [inference-gateway]     1.5s
                ╰── HTTP POST [inference-gateway]                   1.5s
Stats
Tool Calls

╭───────────┬───────┬───────┬────────╮
│ Tool      │ Calls │ Fail% │ Avg    │
├───────────┼───────┼───────┼────────┤
│ Bash      │ 7     │ 14%   │ 1038ms │
│ TodoWrite │ 4     │ 0%    │ 0ms    │
│ Read      │ 3     │ 0%    │ 0ms    │
│ Edit      │ 2     │ 0%    │ 0ms    │
╰───────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────────┬────────┬────────┬────────────┬────────┬──────╮
│ Model                          │ Prompt │ Cached │ Completion │ Total  │ Cost │
├────────────────────────────────┼────────┼────────┼────────────┼────────┼──────┤
│ ollama_cloud/deepseek-v4-flash │ 573906 │ 0      │ 2496       │ 576402 │ -    │
╰────────────────────────────────┴────────┴────────┴────────────┴────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ standard │ 1        │
╰───────────┴──────────┴──────────╯
⚠️ 1 log(s)
  • Bash call_sqrtaj2y:
    exit status 201: task: [format] echo "Formatting code..."
    Formatting code...
    task: [format] black inference_gateway/ tests/ examples/
    "black": executable file not found in $PATH
    ::error title=Task 'format' failed::exit status 127
    task: Failed to run task "format": exit status 127
    

Triggered by edenreich · Infer Action · OSS

Shows how to pass include=["context_window", "pricing"] to list_models() for additional model metadata.
Comment thread examples/list/main.py Outdated
Co-authored-by: Eden Reich <eden.reich@gmail.com>
@edenreich
edenreich merged commit 33e8644 into main Aug 4, 2026
4 checks passed
@edenreich
edenreich deleted the schemas-sync branch August 4, 2026 23:37
inference-gateway-releaser Bot added a commit that referenced this pull request Aug 4, 2026
## [0.15.1](v0.15.0...v0.15.1) (2026-08-04)

### 👷 CI

* **deps:** bump pypa/gh-action-pypi-publish in the github-actions group ([#104](#104)) ([eba6edb](eba6edb))

### 📚 Documentation

* **examples:** add include parameter example to list example - schema v0.21.1 ([#105](#105)) ([33e8644](33e8644))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.15.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@edenreich edenreich moved this from QA to Done in Roadmap 2026 Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant